KERNEL_DIR = /lib/modules/6.6.0-38.0.0.45.oe2403.x86_64/build/
PROJECT_DIR = $(shell pwd)

# SRC_FILES = $(wildcard *.c)
# OBJ_FILES = $(patsubst %.c, %.o, $(wildcard *.c))
OBJ_FILES = ex3.o task.o

obj-m := mod_ex3.o
mod_ex3-objs := $(OBJ_FILES)

all:
	@echo $(OBJ_FILES)
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) modules
clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) clean
